package com.qf.quarte;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
public class Quartz {
    @Scheduled(cron = "* * * * * ?")
    public void testQuartz(){
        System.out.println("这是用spring整合的quartz任务"+System.currentTimeMillis());
    }
}
